import request from '@/utils/request'

// 打卡
export function clockPush(data) {
	return request({
		url: '/attendance/attendanceClock/create',
		method: 'POST',
		data
	})
}

// 是否进入打卡范围
export function checkInScope(data) {
	return request({
		url: '/attendance/settingTable/checkInScope',
		method: 'POST',
		data
	})
}

// 查询当天打卡记录
export function getClockList(data) {
	return request({
		url: '/attendance/attendanceClock/getClockList',
		method: 'POST',
		data
	})
}

// 查询考勤设置
export function selectSetting(data) {
	return request({
		url: '/attendance/settingTable/selectSetting',
		method: 'POST',
		data
	})
}

// 请假申请
export function leaveApply(data) {
	return request({
		url: '/attendance/leaveApplicationForm/create',
		method: 'POST',
		data
	})
}

// 查询请假记录
export function leaveInfo(data) {
	return request({
		url: '/attendance/leaveApplicationForm/selectPage',
		method: 'POST',
		data
	})
}

// 出差申请
export function officeTripApply(data) {
	return request({
		url: '/attendance/businessTravelApplicationForm/create',
		method: 'POST',
		data
	})
}

// 查询出差记录
export function officeTripInfo(data) {
	return request({
		url: '/attendance/businessTravelApplicationForm/selectPage',
		method: 'POST',
		data
	})
}

// 补卡申请
export function supplyApply(data) {
	return request({
		url: '/attendance/supplementaryCardApplication/create',
		method: 'POST',
		data
	})
}

// 查询补卡记录
export function supplyInfo(data) {
	return request({
		url: '/attendance/supplementaryCardApplication/selectPage',
		method: 'POST',
		data
	})
}

// 加班申请
export function overTimeApply(data) {
	return request({
		url: '/attendance/overtimeApplicationForm/create',
		method: 'POST',
		data
	})
}

// 查询加班记录
export function overTimeInfo(data) {
	return request({
		url: '/attendance/overtimeApplicationForm/selectPage',
		method: 'POST',
		data
	})
}

// 外出申请
export function outApply(data) {
	return request({
		url: '/attendance/applicationOutgoingForm/create',
		method: 'POST',
		data
	})
}

// 查询外出记录
export function outInfo(data) {
	return request({
		url: '/attendance/applicationOutgoingForm/selectPage',
		method: 'POST',
		data
	})
}

// 修改密码
export function updatePassword(data) {
	return request({
		url: '/member/user/update-password',
		method: 'POST',
		data
	})
}

// 修改基本信息
export function updateUser(data) {
	return request({
		url: '/member/user/update',
		method: 'POST',
		data
	})
}

// 获取基本信息
export function getUser(data) {
	return request({
		url: '/member/user/get',
		method: 'POST',
		data
	})
}

// 每月考勤查看
export function selectAttendanceRecord(data) {
	return request({
		url: '/attendance/dailyAttendanceStatistics/selectAttendanceRecord',
		method: 'POST',
		data
	})
}